package com.authine.cloudpivot.ext.dto.query;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Collection;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Schema(description = "账单查询条件")
public class BillQuery {

    @Schema(description = "账单编号")
    private Collection<String> ids;

    @Schema(description = "交易ID")
    private Collection<String> trade_id;

    @Schema(description = "客户id")
    private List<String> organization_ids;

    @Schema(description = "客户名称")
    private String organization_name;

    @Schema(description = "客户订单id")
    private Collection<Long> customer_order_id;

    @Schema(description = "订单商品id")
    private Collection<Long> order_goods_id;

    @Schema(description = "创建时间")
    private Collection<String> createdTime;

    @Schema(description = "erp_po")
    private String erp_po;

    @Schema(description = "交易记录表的下单人")
    private String member_name;

    @Schema(description = "商品名称")
    private String summary;

    @Schema(description = "账单类型")
    private String type;

    @Schema(description = "账单类型")
    private List<String> types;

    @Schema(description = "平台组织ID,没有就不传值")
    private String platform_organization_id;

    /**
     * 是否减去退的账单 默认false
     */
    @Schema(description = "是否减去退的金额和数量")
    private Boolean actual = false;

    @Schema(description = "账单生效时间")
    private Collection<String> bill_date;

}
